Skip to content

fix: add reasoning_content field to fix pydantic validation error - #92

Open
mwien wants to merge 2 commits into
mainfrom
orchestration-reasoning-content
Open

fix: add reasoning_content field to fix pydantic validation error#92
mwien wants to merge 2 commits into
mainfrom
orchestration-reasoning-content

Conversation

@mwien

@mwien mwien commented Aug 25, 2026

Copy link
Copy Markdown

A minimal fix to avoid Pydantic validation errors in case reasoning content is returned in the orchestration response. Later we should add convenience functionalities around reasoning content, but this is a larger project and imo out-of-scope of this fix PR.

I quickly checked manually that this fixes the issue. We should likely add some e2e/integration tests to ensure correctness (but those have been flaky recently). In case this PR is not urgent I can take care of this before merging.

@mwien
mwien requested a review from alpkom as a code owner August 25, 2026 14:45

@ZhongpinWang ZhongpinWang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some tests + changelog would be nice. The fix is self-explanatory and looks good.

@mwien
mwien force-pushed the orchestration-reasoning-content branch from b0fdb49 to 9204c29 Compare August 27, 2026 12:19
@mwien

mwien commented Aug 27, 2026

Copy link
Copy Markdown
Author

Added some minimal unit testing for now, previousy there was no unit testing for ChatResponseMessage unless I missed something. So maybe in a separate PR more testing can be added.

Changelog: where should I log the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants